package xh;

/**
 * Created by Administrator on 2016/7/6.
 */
public class Global {

    public static final String BasePath = "E:\\test";

    // 2M
    public static final int FileListUdpBufferMax = 1024 * 1024 * 2;

    public static final int FileListUdpPort = 7894;

    public static final String DownloadingFilePrefix = "downloading.";

    public static final int FileServerPort = 12346;


    public static boolean isDownloadingFile(String fileName) {
        return fileName.startsWith(DownloadingFilePrefix);
    }

    public static String toDownloadingFileName(String originName) {
        return DownloadingFilePrefix + originName;
    }
}
